<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>准了APP</title>
    <script src="{$oss}/active/newyear/js/rem.js"></script>
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: rgb(97, 228, 255);
        }

        div.bg {
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            top: 0;
            background: url("{$oss}test/TT/v1/bg_img{$index}.png") no-repeat center top;
            background-size: 100% auto;
        }

        a, a:hover, a:active, a:visited, a:link, a:focus {
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            -webkit-tap-highlight-color: transparent;
            outline: none;
            background: none;
            text-decoration: none;
        }

        a {
            text-decoration: none;
            background: url("{$oss}test/TT/v1/btn{$index}.png") no-repeat center center !important;
            background-size: 100% 100% !important;
            display: block;
            width: 4.1042rem;
            height: 0.9688rem;
            margin: 10.1865rem auto 0;
            position: relative;
            z-index: 100000;
        }
    </style>
    <script>
        var cnzz_s_tag = document.createElement('script');
        cnzz_s_tag.type = 'text/javascript';
        cnzz_s_tag.async = true;
        cnzz_s_tag.charset = 'utf-8';
        cnzz_s_tag.src = 'https://w.cnzz.com/c.php?id=1278894454&async=1';
        var root_s = document.getElementsByTagName('script')[0];
        root_s.parentNode.insertBefore(cnzz_s_tag, root_s);
    </script>
</head>
<body onclick="downloadApp()">
<div class="bg">
</div>
<a href="javascript:;"></a>
</body>
<script>
    function isIos() {
        var u = navigator.userAgent;
        if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
            return true;
        }
        return false;
    }

    function downloadApp() {
        if (isIos()) {
            // ios
            window.location.href = 'https://apps.apple.com/cn/app/%E5%87%86%E4%BA%86-%E6%98%9F%E5%BA%A7%E6%83%85%E6%84%9F%E9%A2%84%E6%B5%8B%E8%A7%A3%E6%9E%90/id1356471277';
        } else {
            // 安卓逻辑
            window.location.href = '{$oss}/android/douyin-current.apk';
        }
    }
</script>
{include file="../apps/web/view/public/sensors.html" /}
</html>
